<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWalletWithdrawTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('wallet_withdraw', function(Blueprint $table){
			$table->increments('id');
			$table->integer('user_id');
			$table->integer('money');	//金额
			$table->string('user_name', 10)->defaults('');	// 用户名
			$table->string('brank_name', 20)->defaults('');	// 开户行
			$table->integer('card_id');	// 银行卡号
			$table->integer('contact_phone');	//联系电话			
			$table->enum('status', array('success', 'fail', 'wait'))->defaults('');		// 状态
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
	}

}
